package com.vader.boot.beanFactory;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @author Vader
 * @date 2022/3/23
 **/
@Component
@Slf4j
public class Component1 {

    @EventListener
    public void eventListen(UserAgentEvent userAgentEvent){
      log.info("eventListen_info:{}",userAgentEvent);
    }
}
